<template>
  <div>
    <el-form label-width="80px" :model="formLabelAlign">
      <el-form-item label="日期">
        <el-input v-model="formLabelAlign.date"></el-input>
      </el-form-item>
      <el-form-item label="姓名">
        <el-input v-model="formLabelAlign.name"></el-input>
      </el-form-item>
      <el-form-item label="省份">
        <el-input v-model="formLabelAlign.province"></el-input>
      </el-form-item>
      <el-form-item label="市区">
        <el-input v-model="formLabelAlign.city"></el-input>
      </el-form-item>
      <el-form-item label="邮编">
        <el-input v-model="formLabelAlign.zip"></el-input>
      </el-form-item>
      <el-form-item label="地址">
        <el-input v-model="formLabelAlign.address"></el-input>
      </el-form-item>
      <el-row>
        <el-button type="success" @click="$emit('onCancel')" style="margin-left: 40%">修改</el-button>
      </el-row>
    </el-form>
  </div>
</template>

<script>
export default {
  props: ['drawer', 'tablerow'],
  data() {
    return {
      labelPosition: 'right',
      formLabelAlign: this.tablerow,
    };
  },
  watch: {
    formLabelAlign: {
      handler(newValue) {
        localStorage.setItem('tableRow', JSON.stringify(newValue));
      },
      deep: true,
    },
  },
};
</script>

<style></style>
